/** 2018/12/22
 *作者:Cookie
 *功能: 路由配置项
 */

import Home from '../views/home';

const report = () => import(/* webpackChunkName: "report" */ '../views/report'); // 动态懒加载，分模块打包
const detention = () => import(/* webpackChunkName: "report" */ '../views/report/detention');

// dataManage 数据管理
const dataManage = () => import(/* webpackChunkName: "report" */ '../views/dataManage');
const keyPerson = () => import(/* webpackChunkName: "report" */ '../views/dataManage/keyPerson');
const searchEngine = () => import(/* webpackChunkName: "report" */ '../views/dataManage/searchEngine');
const statistics = () => import(/* webpackChunkName: "report" */ '../views/dataManage/statistics');
// const detentionDetail = () => import(/* webpackChunkName: "report" */ '../views/report/detention/detail');
export default [{
  path: '/',
  name: 'home',
  component: Home,
  children: [
    {
      path: 'dataManage',
      name: 'dataManage',
      component: dataManage,
      children: [{
        path: 'keyPerson',
        name: 'keyPerson',
        component: keyPerson
      },
      {
        path: 'searchEngine',
        name: 'searchEngine',
        component: searchEngine
      },
      {
        path: 'statistics',
        name: 'statistics',
        component: statistics
      }]
    },
    {
      path: 'report',
      name: 'report',
      component: report,
      children: [
        {
          path: 'detention',
          name: 'detention',
          component: detention
        }
        // {
        //   path: 'detention/detail',
        //   name: 'detentionDetail',
        //   component: detentionDetail
        // }
      ]
    }
  ]
}];
